<!DOCTYPE html>
<html>
<%include html-head%>

<body>
	<div data-role="dialog" id="editGroupDlg">

		<div data-role="header" data-theme="a">
			<h1><%=title%></h1>
		</div>

		<div role="main" class="ui-content">
			<form class="ui-body ui-body-a ui-corner-all" id="groupForm">
				<div class="ui-field-contain">
					<label for="textinput-id">ID:</label> <input
						type="text" name="textinput-id" id="textinput-id"
						readonly="readonly" placeholder="Group ID" value="<%=id%>"
						required>
				</div>

				<div class="ui-field-contain">
					<label for="textinput-name">Name:</label> <input
						type="text" name="textinput-name" id="textinput-name"
						placeholder="Name" value="<%=name%>" required>
				</div>
				<div class="ui-field-contain">
					<label for="textinput-type">Type:</label> <input
						type="text" name="textinput-type" id="textinput-type"
						placeholder="Type" value="<%=type%>">
				</div>
				<div class="ui-field-contain">
					<label for="textinput-gwid">Gateway ID:</label> <%if(isNew){%> <input
						type="text" name="textinput-gwid" id="textinput-gwid"
						placeholder="Gateway ID" value="<%=gwId%>"><%}else{%><input
						type="text" name="textinput-gwid" id="textinput-gwid"
						placeholder="Gateway ID" value="<%=gwId%>" readonly="readonly"><%}%>
				</div>
				<div class="ui-field-contain">
					<label for="textinput-description">Description:</label> <input type="text"
						name="textinput-description" id="textinput-description"
						placeholder="Description" value="<%=description%>">
				</div>
				<input type='submit' data-role="button" data-theme="b" id="submit"
					value="Upload group"></input>
			</form>
			<a href="#" data-role="button" data-rel="back" data-theme="a">Back to group manager page</a>
		</div>
		<script type="text/javascript" src="owjs/wGroupEdit.js"></script>
	</div>
</body>
</html>